package com.springboot.strategy.demo001.impl;

import com.springboot.strategy.demo001.IPriceStrategy;

/**
 * 新客户具体的实现策略
 */
public class NewPriceStrategy implements IPriceStrategy {
    public double getPrice(double originalPrice) {
        System.out.println("新客户，满10减3");
        if(originalPrice >= 10){
            return originalPrice -3;
        }
        return originalPrice;
    }
}
